package com.lhc.nacosprovider.fegin;

import com.lhc.nacosprovider.constant.Constant;
import com.lhc.nacosprovider.fegin.impl.StockClientFall;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


/**
 * @author liuchaoqun
 * @date 2022/6/18
 * @Description 库存的fegin接口
 */
@FeignClient(
        value = Constant.stack,
        fallback = StockClientFall.class
)
public interface StockClient {

    // Controller
    String AppPrefix = "/stock";


    @GetMapping(AppPrefix+"/{id}")
    String reduce(@PathVariable("id") Long id);

    @GetMapping("index")
    String index();
}
